package com.explorati.design_pattern.comparson.behavior.command;

//调用者
public class Invoker {

	private AbstractCmd cmd;

	public Invoker(AbstractCmd cmd) {
		this.cmd = cmd;
	}

	public boolean execute(String source, String to) {
		return cmd.execute(source, to);
	}
}
